Skip to content

refactor: replace hardcoded admin flash messages with constants - #4

Open
itheCreator1 wants to merge 1 commit into
mainfrom
chore/apply-flash-message-constants
Open

refactor: replace hardcoded admin flash messages with constants#4
itheCreator1 wants to merge 1 commit into
mainfrom
chore/apply-flash-message-constants

Conversation

@itheCreator1

Copy link
Copy Markdown
Owner

Summary

  • Adds PRIORITY_CHANGED and DEPARTMENT_TICKET_CREATED to TICKET_MESSAGES in constants/messages.js
  • Replaces three inline flash-message strings in routes/admin.js (status update, priority update, department ticket creation) with their constant equivalents
  • STATUS_CHANGED already existed but was unused — now wired up consistently

Originally authored on claude/implement-todo-item-rNrYV; rebased onto current main (already up to date, no conflicts) as part of a repo cleanup pass.

Test plan

  • Verified merge-tree against current main produces no conflicts
  • CI (lint + Docker test suite) green

🤖 Generated with Claude Code

Added PRIORITY_CHANGED and DEPARTMENT_TICKET_CREATED to TICKET_MESSAGES,
and replaced the three inline strings in routes/admin.js (status update,
priority update, department ticket creation) with their constant equivalents.
STATUS_CHANGED already existed but was unused — now wired up consistently.

https://claude.ai/code/session_01Hupc9FXnBbSm7X42TVhyrs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants